/**
 *
 * User: wangshan
 * Email wangshan@fclassroom.com
 * Date: 17-12-04
 * Time: PM 02:11
 * Explain: 状态管理
 *  ｛
 *     mutation，更改 Vuex 的 store 中的状态的唯一方法是提交 mutation (可以向 store.commit 传入额外的参数);
 *  ｝
 *
 **/
import * as types from './mutation-types'

const mutations = {
  [types.SET_USERNAME](state, username) {
    state.username = username
  },
}

export default mutations
